package com.mark.beetl.util;

/**
 * 结果返回类
 *
 * @author maliqiang
 * @version 1.0
 * @create 2017-05-23
 */
public class JsonResult {
    private Integer code;
    private String msg;
    private boolean success;
    private Object data;

    public JsonResult(){}

    public JsonResult(Integer code, String msg, boolean success) {
        this.code = 0000;
        this.msg = "操作成功！";
        this.success = true;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
